﻿<UserControl x:Class="OnlineVideos.ShowCast" x:Name="cast"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded" >

    <Grid x:Name="LayoutRoot">
        <ListBox x:Name="lbxCast" 
                 Grid.Row="0" 
                 SelectionChanged="lbxCast_SelectionChanged" 
                 Foreground="White">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel 
                        Margin="10,12,0,0" 
                        Height="130" 
                        Orientation="Horizontal" 
                        VerticalAlignment="Top">
  <toolkit:ContextMenuService.ContextMenu>
                            <toolkit:ContextMenu 
                                Opened="ContextMenu_Opened_1">
                                <toolkit:MenuItem 
                                    x:Name="deletecast" 
                                    Header="delete" 
                                    Click="deletecast_Click_1">
                                </toolkit:MenuItem>
                            </toolkit:ContextMenu>
                        </toolkit:ContextMenuService.ContextMenu>
                        <Image 
                            x:Name="imgMovie" 
                            Source="{Binding PersonImage}" 
                            VerticalAlignment="Top" 
                            Width="100" 
                            Height="130"/>
                        <StackPanel  
                            Margin="24,-12,0,0" 
                            Orientation="Vertical" 
                            VerticalAlignment="Top">
                            <TextBlock 
                                Text="{Binding PersonName}" 
                                FontSize="36" 
                                Margin="0,0,0,10" 
                                TextWrapping="Wrap"></TextBlock>
                            <TextBlock 
                                Text="{Binding  PersonRole}" 
                                FontSize="24"></TextBlock>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <toolkit:PerformanceProgressBar 
            VerticalAlignment="Top" 
            x:Name="MyProgressBar1" 
            Tag="{Binding Link}" 
            IsIndeterminate="False" 
            Width="450" 
            Background="Black" 
            Foreground="Red" 
            HorizontalAlignment="Left"/>
        <Canvas>
            <TextBlock 
                Canvas.Top="200" 
                Canvas.Left="80" 
                FontSize="28" 
                x:Name="tblkcast" 
                Visibility="Collapsed"/>
        </Canvas>

    </Grid>
</UserControl>
